<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Little Man :: DIM 2 :: Game 1</title>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<link rel="stylesheet" type="text/css" href="css/base.css" />
		<script type="text/javascript" src="js/swfobject.js"></script>
		<script type="text/javascript">
			var flashvars = {};
			var params = {};
			var attributes = {};
			swfobject.embedSWF("main.swf?"+Math.random(), "flashContent", "1000", "600", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
		</script>

<script type="text/javascript" language="javascript">
   var http_request = false;
   function makeRequest(url, parameters) {
      http_request = false;
      if (window.XMLHttpRequest) { // Mozilla, Safari,...
         http_request = new XMLHttpRequest();
         if (http_request.overrideMimeType) {
         	// set type accordingly to anticipated content type
            //http_request.overrideMimeType('text/xml');
            http_request.overrideMimeType('text/html');
         }
      } else if (window.ActiveXObject) { // IE
         try {
            http_request = new ActiveXObject("Msxml2.XMLHTTP");
         } catch (e) {
            try {
               http_request = new ActiveXObject("Microsoft.XMLHTTP");
            } catch (e) {}
         }
      }
      if (!http_request) {
         alert('Cannot create XMLHTTP instance');
         return false;
      }
      http_request.onreadystatechange = alertContents;
      http_request.open('GET', url + parameters, true);
      http_request.send(null);
   }

   function alertContents() {
      if (http_request.readyState == 4) {
         if (http_request.status == 200) {
            //alert(http_request.responseText);
            result = http_request.responseText;
            document.getElementById('response').innerHTML = "<hr><h2>Thanks!</h2><p>Thanks for spreading the word. Now play some more, or tell more people...</p>";   
			runsifr();         
         } else {
            alert('There was a problem with the request.');
         }
      }
   }
   
   function get(obj) {
		document.getElementById('response').innerHTML = "<hr/><h2>Sending mail</h2>";
		runsifr();
      var getstr = "?";
      for (i=0; i<obj.childNodes.length; i++) {
         if (obj.childNodes[i].tagName == "INPUT") {
            if (obj.childNodes[i].type == "text") {
               getstr += obj.childNodes[i].name + "=" + obj.childNodes[i].value + "&";
            }
            if (obj.childNodes[i].type == "checkbox") {
               if (obj.childNodes[i].checked) {
                  getstr += obj.childNodes[i].name + "=" + obj.childNodes[i].value + "&";
               } else {
                  getstr += obj.childNodes[i].name + "=&";
               }
            }
            if (obj.childNodes[i].type == "radio") {
               if (obj.childNodes[i].checked) {
                  getstr += obj.childNodes[i].name + "=" + obj.childNodes[i].value + "&";
               }
            }
         }   
         if (obj.childNodes[i].tagName == "SELECT") {
            var sel = obj.childNodes[i];
            getstr += sel.name + "=" + sel.options[sel.selectedIndex].value + "&";
         }
         
      }
      makeRequest('sender.php', getstr);
   }
</script>


	</head>
	<body>
		<div id="container">
			<div id="flashContent">
				<p>
					This game requires Adobe Flash Player 9<br/>and Javascript enabled.<br/><br/><a href="http://www.adobe.com/go/getflashplayer">
						<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" border="0"/>
					</a>
				</p>
			</div>
			<div id="content">
				<div id="leftCol">
					<h1>Little Man | The Game</h1>
					<p>Little man is a swinging game for flash. You play a little man with a rope, scaling a mountain by swinging from pivot points on the mountain
					</p>
					<p>This was created as a project for Digital Interactive Media 2, a course with the RMIT Games School in Melbourne.
					</p>
					<p><b>Download a self running version (they run a whole lot better, especially the Mac version):</b><br/><a href="#">MAC</a> | <a href="#">PC</a>
					</p>
					<h1>Instructions</h1>
					<p>Little man uses only one control: The Left Click.
					</p>
					<p>Clicking and holding near a rock will connect a rope to it, swinging the player. Releasing the mouse disconnects the rope. Using this momentum, you traverse the mountain and collect food for points and avoid obstacles.
					</p>
					<h1>The Team</h1>
					<p>
						<ul>
							<li><p>Alexandra Lester <em>(Artist)</em></p></li>
							<li><p>James Bailey <em>(Programmer)</em></p></li>
							<li><p>Ashim D'Silva <em>(Artist/Programmer)</em></p></li>
						</ul>
					</p>
					<h1>Comments</h1>
					<p>
<?php include('comments/comm.php'); ?>
					</p>
				</div>
				<div id="rightCol">
					<h2>Tell a Friend</h2>
					<form action="javascript:get(document.getElementById('myform'));" id="myform" name="myform">
						<p>
						To Email:<br/>
						<input type="text" name="to" id="text"/><br/><br/>
						From Name:<br/>
						<input type="text" name="name" id="text"/><br/><br/>
						From Email:<br/>
						<input type="text" name="from" id="text"/><br/><br/>
						<input type="submit" id="submit" value="Send Mail" onclick="javascript:get(this.parentNode);"/>
					</form>
					<p>
					<span id="response" name="response"></span>
					</p>
				</div>
			</div>
		</div>
		<div id="footer">&nbsp;</div>


<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-5224568-2");
pageTracker._trackPageview();
</script>
	</body>
</html>